package org.car.word.hutool;

import java.util.Date;

import antlr.collections.List;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.CharsetUtil;

/**
 * @author szw
 * @ClassName: ConvertProTest
 * @Description: 测试类型转化工具类
 * @date 2019年3月12日
 */
public class ConvertProTest {


    public static void main(String[] args) {
		
		/*int a = 2;
		String b = Convert.toStr(a);
		System.out.println(b);*/
		
		/*
		long [] by = {1,2,4,6,7,8};
		String btr = Convert.toStr(by);
		System.out.println(btr);
		*/
		
		
	/*	String [] strby = {"1","2","3","7","8"};
		Integer [] intby = Convert.toIntArray(strby);
		System.out.println(intby);*/
		
		/*long [] longby = {1,2,3,7,8};
		Integer [] intby = Convert.toIntArray(longby);
		System.out.println(intby);*/
		
		/*String strdate = "2019-08-11";
		Date datestr = Convert.toDate(strdate);*/
		
		/*Object[] a = {"a", "你", "好", "123", 1};
		//从4.1.11开始可以这么用
		java.util.List<?> list = Convert.toList(a);
		for (int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i));
		}
		*/

        //半角转换
		/*String str = "17630389495";
		String bjstr = Convert.toSBC(str);
		System.out.println(bjstr);*/
		
		/*String str = "１７６３０３８９４９５";
		String qjstr = Convert.toDBC(str);
		System.out.println(qjstr);*/

        //hex 16进制
	/*	String str = "我是一只可爱的柴犬";
		String zhstr = Convert.toHex(str,CharsetUtil.CHARSET_UTF_8);
		System.out.println(zhstr);*/

        //将十六进制转换成字符串
	/*	String str   = "e68891e698afe4b880e58faae58fafe788b1e79a84e69fb4e78aac";
		String zhstr = Convert.hexStrToStr(str, CharsetUtil.CHARSET_UTF_8);
		System.out.println(zhstr);
		*/


    }

}
